import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 合格证邮寄登记查询列表 /ttVsCertificatePost/queryPostRegistrationForDealer

export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttVsCertificatePost/queryPostRegistrationForDealer`, params)

// 导出 /ttVsCertificatePost/exportPostRegistrationForDealer
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/ttVsCertificatePost/exportPostRegistrationForDealer`, params, {
  responseType: 'blob'
})

// 上级仓库列表
export const getFactoryWarehouseList = (params) => axios.get(`${SERVER.WHOLESALES}/tmVsSubWarehouse/getWarehouseList`, {
  params
})
// 资金类型接口
export const gettmFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
